<{include file="top_header.tpl"}>
    <table align="center" border="1" width="800">
        <{foreach from=$users item="row" name="outer"}>
            <{if $smarty.foreach.outer.iteration is even }>
                <tr bgcolor="#cccccc">
            <{elseif $smarty.foreach.outer.first}>
                <tr bgcolor="red">
            <{elseif $smarty.foreach.outer.last}>
                <tr bgcolor="blue">
            <{else}>
                <tr>
            <{/if}>
                <td><{$row.id}></td>
                <td><{$row.name}></td>
            </tr>	
        <{foreachelse}>
            <tr><td colspan='2'>数组中没有数据</td></tr>
        <{/foreach}>
    </table>
</body>
</html>